package com.sy.easycms.bo;

import org.hibernate.Session;

import com.sy.easycms.dao.mysql.ContentDAO;
import com.sy.easycms.dao.mysql.LogDAO;
import com.sy.easycms.dao.mysql.TagDAO;
import com.sy.easycms.hbm.HibernateSessionFactory;

/**
 * 基础业务类
 * @author Luke Sun
 *
 */
public abstract class BaseBO {

	protected TagDAO tagDAO = new TagDAO();
	
	protected ContentDAO contentDAO = new ContentDAO();
	
	protected LogDAO logDAO = new LogDAO();
	
	protected Session getSession()
	{
		return HibernateSessionFactory.getSession();
	}

	protected TagDAO getTagDAO() {
		return tagDAO;
	}

	protected ContentDAO getContentDAO() {
		return contentDAO;
	}

	protected LogDAO getLogDAO() {
		return logDAO;
	}
}
